﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SAP.People
{
    class GradeUtil
    {
        private static readonly IDictionary<string, string> _map = new Dictionary<string, string> { 
            { "Agile Developer", "T2" },
            { "Associate Development Architect", "T3" },
            { "Associate Support Engineer CoE", "T1" },
            { "Developer", "T2" },
            { "Developer Associate", "T1" },
            { "Development Architect", "T4" },
            { "Development Expert", "T4" },
            { "Development Manager", "T4" },
            { "Development Senior Manager", "T5" },
            { "Information Developer", "T2" },
            { "Information Developer Associate", "T1" },
            { "Knowledge Architect", "T4" },
            { "Management Support Specialist", "T2" },
            { "Manager AGS", "T4" },
            { "N/A", "T0" },
            { "Operations Expert", "T4" },
            { "Operations Senior Manager", "T4" },
            { "Operations Specialist", "T2" },
            { "Product Associate", "T2" },
            { "Product Expert", "T4" },
            { "Product Specialist", "T3" },
            { "Project Consultant - Development", "T3" },
            { "Project Expert - Development", "T4" },
            { "Project Expert Service &amp; Support", "T4" },
            { "Quality Associate", "T1" },
            { "Quality Expert", "T4" },
            { "Quality Manager IMS", "T4" },
            { "Quality Specialist", "T2" },
            { "Senior Developer", "T3" },
            { "Senior Information Developer", "T3" },
            { "Senior Manager AGS", "T3" },
            { "Senior Operations Specialist", "T3" },
            { "Senior Product Specialist", "T3" },
            { "Senior Project Consultant - Development", "T3" },
            { "Senior Quality Specialist", "T3" },
            { "Senior Solution Specialist", "T3" },
            { "Senior Support Engineer CoE", "T3" },
            { "Senior Support Engineer MS", "T3" },
            { "Senior User Experience Design Specialist", "T3" },
            { "Solution Expert", "T4" },
            { "Support Architect CoE", "T4" },
            { "Support Associate MS", "T1" },
            { "Support Engineer ASDS", "T2" },
            { "Support Engineer CoE", "T2" },
            { "Support Engineer MS", "T2" },
            { "Translation Specialist", "T2" },
            { "User Experience Design Expert", "T4" },
            { "User Experience Design Specialist", "T2" },
        };

        public static string Map(string job)
        {
            if (_map.ContainsKey(job))
                return _map[job];
            else
                return "NOT_MAPPED";
        }
    }
}
